<?php
session_start();
//var_dump($_GET);

try{
	$filepath = $_SESSION['filterlist'].$_GET['name'];
	$fp = fopen($filepath, 'w') or die("can't open file");
	fwrite($fp, $_GET['text']);
	fclose($fp);
}
catch (Exception $err){
	var_dump($err);
}

?>
